From: Sebastian Keller Date: Tue, 6 Jan 2015 23:35:13 +0000 (+0100) Subject: calendar: update current day highlight on day change X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1910 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=60b3d43ea71ab1e50bcda3b7eb681cd63fa3e01e;p=gnome-shell.git calendar: update current day highlight on day change https://bugzilla.gnome.org/show_bug.cgi?id=742492 --- diff --git a/js/ui/calendar.js b/js/ui/calendar.js index 5d6d23052..b77860400 100644 --- a/js/ui/calendar.js +++ b/js/ui/calendar.js @@ -601,6 +601,7 @@ const Calendar = new Lang.Class({ beginDate.setHours(12); this._calendarBegin = new Date(beginDate); + this._markedAsToday = now; let year = beginDate.getYear(); @@ -692,7 +693,7 @@ const Calendar = new Lang.Class({ else this._monthLabel.text = this._selectedDate.toLocaleFormat(this._headerFormat); - if (!this._calendarBegin || !_sameMonth(this._selectedDate, this._calendarBegin)) + if (!this._calendarBegin || !_sameMonth(this._selectedDate, this._calendarBegin) || !_sameDay(now, this._markedAsToday)) this._rebuildCalendar(); this._buttons.forEach(Lang.bind(this, function(button) {